package com.education.course.service.impl;

import java.util.List;
import com.education.common.utils.DateUtils;
import com.education.course.domain.EduCourseSubjectVideo;
import com.education.course.mapper.EduCourseSubjectVideoMapper;
import com.education.course.service.IEduCourseSubjectVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author education
 * @date 2024-08-09
 */
@Service
public class EduCourseSubjectVideoServiceImpl implements IEduCourseSubjectVideoService
{
    @Autowired
    private EduCourseSubjectVideoMapper eduCourseSubjectVideoMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EduCourseSubjectVideo selectEduCourseSubjectVideoById(Long id)
    {
        return eduCourseSubjectVideoMapper.selectEduCourseSubjectVideoById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param eduCourseSubjectVideo 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EduCourseSubjectVideo> selectEduCourseSubjectVideoList(EduCourseSubjectVideo eduCourseSubjectVideo)
    {
        return eduCourseSubjectVideoMapper.selectEduCourseSubjectVideoList(eduCourseSubjectVideo);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param eduCourseSubjectVideo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEduCourseSubjectVideo(EduCourseSubjectVideo eduCourseSubjectVideo)
    {
        eduCourseSubjectVideo.setCreateTime(DateUtils.getNowDate());
        return eduCourseSubjectVideoMapper.insertEduCourseSubjectVideo(eduCourseSubjectVideo);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param eduCourseSubjectVideo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEduCourseSubjectVideo(EduCourseSubjectVideo eduCourseSubjectVideo)
    {
        eduCourseSubjectVideo.setUpdateTime(DateUtils.getNowDate());
        return eduCourseSubjectVideoMapper.updateEduCourseSubjectVideo(eduCourseSubjectVideo);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseSubjectVideoByIds(Long[] ids)
    {
        return eduCourseSubjectVideoMapper.deleteEduCourseSubjectVideoByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseSubjectVideoById(Long id)
    {
        return eduCourseSubjectVideoMapper.deleteEduCourseSubjectVideoById(id);
    }
}
